﻿using System.Collections.Generic;
using System.Text.Json.Serialization;
namespace UploadFileMVCWebApplication.Models
{
    public class UploadViewModel
    {
        public List<UploadedFile> UploadedFiles { get; set; } = new List<UploadedFile>();
    }

    public class UploadedFile
    {
        [JsonPropertyName("OriginalName")]
        public string OriginalName { get; set; }

        [JsonPropertyName("SavedName")]
        public string SavedName { get; set; }

        [JsonPropertyName("Size")]
        public string Size { get; set; }

        [JsonPropertyName("UploadedAt")]
        public DateTime UploadedAt { get; set; }

        [JsonPropertyName("DownloadUrl")]
        public string DownloadUrl { get; set; }
    }
}
